package org.carabiner.infinitest;

class InfinitestUtils
{
  private static final String LINE_BREAK = "<br/>";

  public static String stackTraceToString(StackTraceElement[] stackTrace)
  {
    StringBuilder trace = new StringBuilder();
    trace.append("<html>");
    for(StackTraceElement element : stackTrace)
    {
      trace.append(element.toString() + LINE_BREAK);
    }    
    trace.setLength(trace.length() - LINE_BREAK.length());
    trace.append("</html>");
    return trace.toString();
  }

}
